From 128c2192cfa8f3677b083edc209990bf5f7f0375 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 14 Feb 2004 23:58:50 +0000 Subject: [PATCH] Make stock_size an uint property, to allow custom icon sizes. Also clarify Sun Feb 15 00:49:59 2004 Matthias Clasen * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): Make stock_size an uint property, to allow custom icon sizes. Also clarify the blurb. (#130047, Erik Grinaker) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtkcellrendererpixbuf.c | 11 ++++++----- 6 files changed, 36 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c4d8891987..b165aad97d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 15 00:49:59 2004 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): + Make stock_size an uint property, to allow custom icon + sizes. Also clarify the blurb. (#130047, Erik Grinaker) + Sat Feb 14 11:05:26 2004 Manish Singh * configure.in: Remove unnecessary STRIP_* definitions, and GNU diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index c4d8891987..b165aad97d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Sun Feb 15 00:49:59 2004 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): + Make stock_size an uint property, to allow custom icon + sizes. Also clarify the blurb. (#130047, Erik Grinaker) + Sat Feb 14 11:05:26 2004 Manish Singh * configure.in: Remove unnecessary STRIP_* definitions, and GNU diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index c4d8891987..b165aad97d 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Sun Feb 15 00:49:59 2004 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): + Make stock_size an uint property, to allow custom icon + sizes. Also clarify the blurb. (#130047, Erik Grinaker) + Sat Feb 14 11:05:26 2004 Manish Singh * configure.in: Remove unnecessary STRIP_* definitions, and GNU diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index c4d8891987..b165aad97d 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Sun Feb 15 00:49:59 2004 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): + Make stock_size an uint property, to allow custom icon + sizes. Also clarify the blurb. (#130047, Erik Grinaker) + Sat Feb 14 11:05:26 2004 Manish Singh * configure.in: Remove unnecessary STRIP_* definitions, and GNU diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index c4d8891987..b165aad97d 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Sun Feb 15 00:49:59 2004 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): + Make stock_size an uint property, to allow custom icon + sizes. Also clarify the blurb. (#130047, Erik Grinaker) + Sat Feb 14 11:05:26 2004 Manish Singh * configure.in: Remove unnecessary STRIP_* definitions, and GNU diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index 64da59d583..7f344dcbed 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -164,10 +164,11 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class) g_object_class_install_property (object_class, PROP_STOCK_SIZE, - g_param_spec_enum ("stock_size", + g_param_spec_uint ("stock_size", P_("Size"), - P_("The size of the rendered icon"), - GTK_TYPE_ICON_SIZE, + P_("The GtkIconSize value that specifies the size of the rendered icon"), + 0, + G_MAXUINT, GTK_ICON_SIZE_MENU, G_PARAM_READWRITE)); @@ -231,7 +232,7 @@ gtk_cell_renderer_pixbuf_get_property (GObject *object, g_value_set_string (value, priv->stock_id); break; case PROP_STOCK_SIZE: - g_value_set_enum (value, priv->stock_size); + g_value_set_uint (value, priv->stock_size); break; case PROP_STOCK_DETAIL: g_value_set_string (value, priv->stock_detail); @@ -294,7 +295,7 @@ gtk_cell_renderer_pixbuf_set_property (GObject *object, priv->stock_id = g_strdup (g_value_get_string (value)); break; case PROP_STOCK_SIZE: - priv->stock_size = g_value_get_enum (value); + priv->stock_size = g_value_get_uint (value); break; case PROP_STOCK_DETAIL: if (priv->stock_detail) -- 2.30.2